package online.longzipeng.cinemasys.common.result;

/**
 * @Author: lzp
 * @Date: 2021/2/7 19:00
 */
public enum ResponseEnum {
    // 业务通用
    SUCCESS("200","操作成功!!"),
    FAILED("900","操作失败!!"),
    // 异常相关 7xx
    EXCEPTION_NULL_OBJECT("750","空对象错误!!"),
    EXCEPTION_NOT_NULL_OBJECT("751","对象不为空错误!!"),
    EXCEPTION_NULL_STRING("752","空字符串错误!!"),
    EXCEPTION_NOT_NULL_STRING("753","字符串不为空串错误!!"),
    EXCEPTION_VALIDATOR("754","数据校验错误"),
    // 影厅相关返回结果
    EXCEPTION_SEAT_CREATE_FAILED("701","座位自动生成失败！！"),
    EXCEPTION_NAME_CONFIRMATION("702","影厅名称重复！！"),
    // 用户相关返回结果
    TOKEN_TIMEOUT("720","身份信息已过期！！请重新登录"),
    TOKEN_INVALID("721","无效的身份信息！！请重新登录"),
    USER_LOGIN_ERROR("722","账号或密码错误"),
    USER_EXISTED("723","用户名已存在!!"),
    USER_DISABLE("724","用户已被禁用，请联系管理员!!"),
    USER_LOCKED("725","用户名已被锁住，请重置密码!!"),
    EMAIL_FORMAT_ERROR("726","邮箱格式错误!!"),
    EMAIL_CODE_NOT_EXIST("727","邮箱验证码已过期或不存在!!"),
    EMAIL_CODE_ERROR("728","邮箱验证码已过期或不存在!!"),
    USER_IS_NOT_EXISTED("729","用户不存在!!"),
    USER_EMAIL_NOT_MATCHED("730","用户的邮箱不匹配！！"),
    // 用户组相关返回结果
    GROUP_EXISTED("740","该用户组已存在！！"),
    // 订单相关
    EXCEPTION_SEAT_IS_TAKE_UP("780","该座位已被占用！！"),

    ;
    private String code;
    private String message;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
